package www.rijiyingyu;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("www.rijiyingyu")
public class MainStat {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext bean = new AnnotationConfigApplicationContext(MainStat.class);
		bean.addBeanFactoryPostProcessor(new BeanFactory());
		bean.refresh();
//		HI bean = context.getBean(HI.class);
//		bean.s();
	}
}
class BeanFactory implements BeanDefinitionRegistryPostProcessor {

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

	}

	@Override
	public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {

	}
}